<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="pandoc" />


<meta name="author" content="Yiying Wang" />

<meta name="date" content="2017-03-15" />

<title>Basic Plots 15 - Heatmap</title>

<script src="libs/jquery-1.11.3/jquery.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="libs/bootstrap-3.3.5/css/cosmo.min.css" rel="stylesheet" />
<script src="libs/bootstrap-3.3.5/js/bootstrap.min.js"></script>
<script src="libs/bootstrap-3.3.5/shim/html5shiv.min.js"></script>
<script src="libs/bootstrap-3.3.5/shim/respond.min.js"></script>
<script src="libs/navigation-1.1/tabsets.js"></script>
<script src="libs/htmlwidgets-0.8/htmlwidgets.js"></script>
<script src="libs/echarts-2.2.7/echarts-all.js"></script>
<script src="libs/charts-ext-2.2.7/main.js"></script>
<script src="libs/charts-ext-2.2.7/BMap.js"></script>
<script src="libs/echarts-binding-0.2/echarts.js"></script>


<style type="text/css">code{white-space: pre;}</style>
<style type="text/css">
div.sourceCode { overflow-x: auto; }
table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
  margin: 0; padding: 0; vertical-align: baseline; border: none; }
table.sourceCode { width: 100%; line-height: 100%; }
td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
td.sourceCode { padding-left: 5px; }
code > span.kw { color: #007020; font-weight: bold; } /* Keyword */
code > span.dt { color: #902000; } /* DataType */
code > span.dv { color: #40a070; } /* DecVal */
code > span.bn { color: #40a070; } /* BaseN */
code > span.fl { color: #40a070; } /* Float */
code > span.ch { color: #4070a0; } /* Char */
code > span.st { color: #4070a0; } /* String */
code > span.co { color: #60a0b0; font-style: italic; } /* Comment */
code > span.ot { color: #007020; } /* Other */
code > span.al { color: #ff0000; font-weight: bold; } /* Alert */
code > span.fu { color: #06287e; } /* Function */
code > span.er { color: #ff0000; font-weight: bold; } /* Error */
code > span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
code > span.cn { color: #880000; } /* Constant */
code > span.sc { color: #4070a0; } /* SpecialChar */
code > span.vs { color: #4070a0; } /* VerbatimString */
code > span.ss { color: #bb6688; } /* SpecialString */
code > span.im { } /* Import */
code > span.va { color: #19177c; } /* Variable */
code > span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code > span.op { color: #666666; } /* Operator */
code > span.bu { } /* BuiltIn */
code > span.ex { } /* Extension */
code > span.pp { color: #bc7a00; } /* Preprocessor */
code > span.at { color: #7d9029; } /* Attribute */
code > span.do { color: #ba2121; font-style: italic; } /* Documentation */
code > span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code > span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
</style>
<style type="text/css">
  pre:not([class]) {
    background-color: white;
  }
</style>


<style type="text/css">
h1 {
  font-size: 34px;
}
h1.title {
  font-size: 38px;
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 24px;
}
h4 {
  font-size: 18px;
}
h5 {
  font-size: 16px;
}
h6 {
  font-size: 12px;
}
.table th:not([align]) {
  text-align: left;
}
</style>

<link rel="stylesheet" href="/home/madlogos/R/x86_64-pc-linux-gnu-library/3.3/knitr/misc/vignette.css" type="text/css" />

</head>

<body>

<style type = "text/css">
.main-container {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}
code {
  color: inherit;
  background-color: rgba(0, 0, 0, 0.04);
}
img {
  max-width:100%;
  height: auto;
}
.tabbed-pane {
  padding-top: 12px;
}
button.code-folding-btn:focus {
  outline: none;
}
</style>



<div class="container-fluid main-container">

<!-- tabsets -->
<script>
$(document).ready(function () {
  window.buildTabsets("TOC");
});
</script>

<!-- code folding -->






<div class="fluid-row" id="header">



<h1 class="title toc-ignore">Basic Plots 15 - Heatmap</h1>
<h4 class="author"><em>Yiying Wang</em></h4>
<h4 class="date"><em>2017-03-15</em></h4>

</div>

<div id="TOC">
<ul>
<li><a href="#introduction"><span class="toc-section-number">1</span> Introduction</a></li>
<li><a href="#function-call"><span class="toc-section-number">2</span> Function Call</a></li>
<li><a href="#showcase"><span class="toc-section-number">3</span> Showcase</a><ul>
<li><a href="#data-preparation"><span class="toc-section-number">3.1</span> Data Preparation</a></li>
<li><a href="#basic-plot"><span class="toc-section-number">3.2</span> Basic Plot</a></li>
</ul></li>
<li><a href="#futher-setup"><span class="toc-section-number">4</span> Futher Setup</a></li>
</ul>
</div>

<p>First, you should load <code>recharts</code>:</p>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>(recharts)</code></pre></div>
<div id="introduction" class="section level1">
<h1><span class="header-section-number">1</span> Introduction</h1>
<p>Heatmap has 1 basic type: heatmap.</p>
<table id='intro'>
<tr>
<td>
<div id="htmlwidget-a2ee1a04f836f0c85cfa" style="width:400px;height:300px;" class="echarts html-widget"></div>
<script type="application/json" data-for="htmlwidget-a2ee1a04f836f0c85cfa">{"x":{"series":[{"type":"heatmap","minAlpha":0.2,"opacity":0.6,"gradientColors":["blue","cyan","limegreen","yellow","red"],"data":[[1139.87156975728,209.663603909366,0.822189851091473],[343.851361345478,51.6342079372363,0.694283442831598],[476.965755778431,148.038456407377,0.593185129290853],[351.371490820651,252.256468193152,0.893261383321738],[-47.1336107733884,178.301986490433,0.954953995645321],[-599.511735221564,92.2188410149542,0.910045268951462],[482.020355011083,176.254956624312,0.820016615676658],[335.389478786952,71.467787697596,0.936009460888215],[115.35200918892,152.108811929212,0.93275635928027],[56.355683003232,175.788394864135,0.748275891738421],[-40.5460116101609,129.603431998649,0.728530891268404],[-528.554147927647,132.015084735686,0.836190279071057],[-317.366258237074,112.773296162566,0.838884773158195],[-270.053584272542,165.991120752395,0.623363881722826],[-134.175550505082,141.554454561764,0.789474022110281],[574.580911055293,184.593445637984,0.975915186663919],[725.225198603894,176.053689633157,0.924239285848291],[-399.17035385522,236.049401248077,0.973352477357096],[473.169805583876,110.377790431151,0.674600229725082],[885.476579088457,198.362398842102,0.705388479910507],[915.679737050216,194.122038193679,0.976984471408531],[-332.258915140732,57.3893434850347,0.555708602509387],[-350.875162979801,149.143254000871,0.644192848374098],[169.848607350783,109.303130008926,0.88309845397469],[187.171232274522,185.734734880628,0.787817608475646],[-1035.96626481252,223.238507424929,0.979945791866405],[707.559603327935,177.408901757718,0.761853210865314],[343.313361025968,97.2786267314965,0.912047302157771],[-367.177321483563,99.8117656582281,0.393409985254028],[439.748480988476,187.410679469281,0.594500754408658],[463.330979416469,105.82086593164,0.520350708807868],[1052.40963315479,212.002781508952,0.833550642100864],[252.590547936125,136.775246898343,0.501554681236173],[753.48132891675,138.481659601385,0.718063740536635],[-465.154054665161,97.6853826525048,0.741954906197948],[156.353469985439,131.001900035849,0.887012461526707],[1312.15744095903,175.707450177925,0.947073824914573],[-883.2578313429,178.394089747216,0.451754003346367],[629.037351343147,86.3148634711794,0.9043295227454],[406.391094370058,133.367904000179,0.998463943851681],[-601.171964472837,106.734209677982,0.710956041004301],[1150.62282448172,171.218929726165,0.852878381492623],[-353.739230203917,179.341183695407,0.927153769357915],[378.663740243025,199.407728058009,0.944272300498848],[556.392495772561,164.149003010255,0.986414981114209],[371.909834717575,191.908819982766,0.56307017108883],[-58.1378692892737,141.220527517833,0.900062129091093],[1111.9430439163,212.771487989221,0.631892913066824],[-644.520072380113,74.6245598781315,0.440767581300161],[1029.61245248284,185.939273645645,0.545913676666112],[-337.919804485433,185.950232046701,0.898684131339766],[1375.72957176993,133.353848556167,0.96366202200469],[1011.83883445667,93.5855072941369,0.784134275984113],[76.8144307325445,123.24007217153,0.95696750168436],[161.03256690633,247.166488028919,0.906010260525324],[56.9382337890785,144.212266097511,0.549277822355522],[368.006128986218,68.6658277688376,0.842220396418393],[39.7987476567678,171.617954533704,0.732805924395103],[-270.047547911902,207.071152067329,0.366492851690586],[-364.904470035384,193.668590033623,0.833984672171209],[1404.35049268572,133.661542621117,0.580085149214428],[-1010.47721937966,116.858698383419,0.622306239711449],[-114.772785831337,75.8576310035395,0.59740082709496],[-927.444886924018,117.033798159368,0.977520193639125],[-590.90899489108,93.4769746939681,0.770430330890632],[411.559915602916,101.799220118863,0.628798348798332],[-68.611948207992,249.159866446515,0.722457845191143],[-1226.09160433265,115.561373851671,0.708428152287696],[-334.980782403624,144.697569277899,0.878932318173434],[70.1808422202867,170.099852422646,0.612517620083717],[-493.730078027213,110.514205842362,0.483493876143602],[84.0592021152715,111.833557400608,0.941485830488046],[344.572345026585,159.295740925051,0.979030399427476],[559.513283271376,131.208089820642,0.578027897715148],[-524.792330002554,323.308329702162,0.866508168466375],[521.48933377629,135.063359506236,0.835254672742814],[479.170575456734,69.2683310651109,0.240968241215327],[-441.27482961763,148.263864281247,0.931497796851263],[228.476641072666,211.474628727589,0.815766594329445],[-367.532435413897,156.638447718352,0.216011593623319],[191.74738058001,78.5140176499318,0.93845963640841],[66.6085818892813,172.104562913528,0.914571701660288],[-2.39777145177321,219.077827160373,0.877491741752846],[230.263225281463,142.76670198064,0.860474638284262],[-729.188597134262,97.4777906121209,0.938417532799778],[254.795712949738,181.592139541094,0.739556491544842],[-113.854835969108,127.018541580479,0.708402975612121],[-20.6688789798337,242.564093061162,0.926817746256263],[468.641009859761,172.882480911346,0.81863774379507],[342.062074904055,117.562396172114,0.93038581783704],[611.10874607954,170.359322379828,0.929491895363011],[253.811040913898,93.8340835470045,0.682578183114709],[1078.24239979302,128.854658047296,0.688092426689808],[-104.611960097601,224.968371557487,0.699365009677735],[326.091449399042,187.783226409715,0.92154638743124],[234.547129280093,114.782225202886,0.915317908391742],[-797.792559237271,123.251512275755,0.72251995739455],[1341.10245735535,46.5214652550808,0.944028146581681],[699.696314096771,97.8919710299451,0.556007583228136],[1180.35868350973,96.9506866125143,0.865229277561477],[747.668584512007,-1098.93920858396,0.591778490319741],[-227.002085819091,-918.944748101081,0.786521255685551],[553.653758202126,-882.509665617452,0.971487023409876],[-1389.73603921287,55.2770589493488,0.523896285986221],[883.808249321976,610.854469636028,0.633744756559987],[-448.259596502905,-884.117325645333,0.974790630689133],[1112.36454241224,97.4248635471608,0.830877661180876],[419.878757466784,592.248347231144,0.0914385416469481],[-241.075410238909,148.002541186322,0.523940928467524],[-703.609394782284,50.0093638866222,0.778859521812587],[-262.336989700468,-988.748133135372,0.983239781467337],[95.3912612081358,-426.395867889465,0.795996570008086],[-283.257715884028,-677.719629332072,0.18959860067357],[1983.8789827463,846.879453773706,0.767374716915898],[-950.061108437108,-433.118197518049,0.983511283034951],[1907.63653701631,-662.937912256265,0.693715401968005],[1543.72573907142,-90.8877893799504,0.938287436491936],[-989.450094473133,-437.825649030109,0.454783452268205],[-703.467799645309,438.681057000668,0.72494525650006],[-1483.59499368112,1072.73978698856,0.797846387995888],[-354.696950526105,-82.865847255408,0.427600384470632],[249.137547171211,-373.714715376335,0.813956260985233],[-395.730311362664,1438.32966111586,0.869615877060426],[24.0425145156441,411.141804523672,0.550094560185798],[336.712214947511,-903.623691462177,0.559358062100952],[-914.909225614603,-1395.58004942336,0.595803600450227],[2021.14992810838,-364.713110985357,0.797633852136453],[-846.351439625557,-767.904136842828,0.663713689890892],[-377.966184721977,-537.52194420029,0.651281903249885],[716.120040847695,-630.271220093103,0.877662036360574],[2065.37544869578,184.823836243055,0.717754584747838],[446.926977348598,294.045958452073,0.982633834827481],[6.01020548972856,1320.63948986875,0.915071912600867],[-53.7875060979922,345.468690523577,0.461910439010495],[1117.51151636581,-545.855594409204,0.940123103998617],[-549.225950425057,1118.99299199735,0.643988648078695],[-239.02937727527,-263.84615382626,0.90507024922295],[2414.42116689294,-1041.27281422549,0.756019999927581],[198.069295495014,-777.432267965879,0.446294522171886],[-325.748809552003,1281.80910798942,0.959149124940415],[1445.53615341635,21.2264882449007,0.507359377120936],[-164.121723350321,-9.02530878073175,0.390157047525485],[-227.050733861493,58.0230586714666,0.915414259773369],[507.12112077992,463.345390160579,0.791717991126783],[247.203783766913,-251.189666855039,0.86942159631601],[407.635030584696,369.881868535293,0.854094941223019],[1024.06448942507,-1116.95479538348,0.455395476028325],[1310.49852300793,-208.44868961822,0.808004528432447],[-1538.30146512517,294.155708803605,0.781838187905685],[-2111.36168623403,-1064.37393893805,0.671973119096032],[72.8697864775407,-101.603514507942,0.695974359396187],[-3007.43515940822,1199.1094827619,0.714458758930038],[-1417.09450864476,1545.64628445345,0.679412924083794],[1234.57780589776,-24.1942096562546,0],[-617.181775874971,-662.880297157451,0.733282744001706],[-149.897833948429,1430.75113828156,0.70800423774167],[-300.91062947525,-454.406444421797,0.476639692445424],[-816.824347742953,-861.515716321177,0.780167586735578],[1362.87961876454,707.986652498532,0.663534437360636],[918.725426289912,996.537934068518,0.700925640858258],[-376.376602422871,1335.17349919332,0.972384355139287],[877.693014920725,234.820337780972,0.671101543360357],[161.449027016962,-460.73924587796,0.759059479629187],[420.1804480931,14.4155524937,0.823913601786206],[-57.847312816165,378.182547018092,0.63757821117744],[-393.696998838661,-130.139351759122,0.589758745622801],[349.857071690319,-705.992308627173,0.759180874694252],[-867.582931227263,194.859841854345,0.867788188794954],[-443.199979571983,-527.813320087752,0.755847092623776],[-1038.14905978178,-1550.41158886137,0.952910516044508],[-684.554551190705,-201.480556015693,0.867159458306975],[254.222206475321,-1489.68086372913,0.949919247731997],[-651.744249926457,324.369342001093,0.95936002457213],[437.051247875959,2013.90889836196,0.313506309008606],[-1149.1155043409,-539.965873578956,0.781972754327533],[-1941.76247198635,96.1267224327293,0.851365194382639],[-690.478663558848,112.206226537362,0.566601707452119],[-444.702681331749,1148.56262076931,0.631921785138035],[-243.022575001415,-178.436875207103,0.908899467671684],[34.5189642821692,-228.771857983301,0.788340149218396],[-1977.03345063498,-21.7954924186252,0.692541443080792],[393.216765225782,638.72502832365,0.968736213887337],[-1152.71010968728,-757.680435644182,0.900500118229738],[282.183693187559,-796.799634109497,0.862771743172671],[143.80512744196,356.496610107301,0.781068851293489],[348.168033238593,-1088.16879482223,0.543350200049395],[807.667138818252,514.204759739872,0.615102572568939],[421.78524869382,734.264678543325,0.664456308936155],[309.03268081788,-335.623150244488,0.989611453169257],[-436.732015265424,190.256579933465,0.831645725646836],[-546.403086424407,365.080466872057,0.764213779277907],[-1318.81734580344,269.00153574592,0.962348786497181],[-219.448126881362,390.110134785303,0.492121905188048],[-189.204650046028,-681.561570973061,1],[-1084.56094594149,-14.5534725641013,0.549525849228881],[-380.159290938022,1286.33897142411,0.484207276274964],[221.519324391525,200.978484360926,0.766416200081545],[768.468066377169,-259.834711688104,0.643933869512914],[-1053.65908102223,328.225871410796,0.875519702361099],[322.952632236324,887.789536595661,0.272965924434529],[-157.20870840004,-1117.45444568415,0.583217432564656],[-962.704086254372,972.113690587792,0.595895724248976],[808.465227966983,-1215.17222612584,0.893462914039635],[764.070485539136,215.554616827419,0.794684595550189],[-1689.58111406666,-1211.99446833658,0.517769775310845],[656.771847811434,-794.555421144183,0.815338148302437],[-1496.36003897671,1476.3447909523,0.612429282096755],[763.92842482827,838.318476279371,0.946011458957935],[188.028223097228,-210.395908283823,0.298332772512252],[815.6129124861,345.712261494287,0.734950836179016],[795.6369083224,-232.885162546937,0.616418760561895],[1030.83805266442,845.209599989924,0.873808955325483],[-1468.98124487835,-32.8741965611176,0.952840597422568],[1119.78925204176,107.396199359396,0.952661323294508],[-592.476239554626,526.747136308102,0.620577868227012],[81.2003517389422,119.675887658956,0.850116016730756],[-1070.55951669531,-851.957645616729,0.69607026765613],[-878.759944906056,494.276839715276,0.958780936612281],[284.655979324759,-804.164041472097,0.844692616529717],[-287.742053318968,425.800973683988,0.483831414529462],[-1120.71340363324,-1151.81669611313,0.942014838814473],[-1599.45607755594,-237.492213764508,0.944724877341097],[1100.38583291779,671.250491734553,0.726321136101142],[416.089183799725,-67.2492946682845,0.846718128982835],[415.064778416145,417.44942479986,0.643357839732256],[1045.3384066572,-1513.05143770084,0.759551535281546],[-68.6220313662723,97.2550369954333,0.663273096184889],[-1310.66762253005,240.716210331024,0.982979853567717],[-398.473351865904,-1300.56802501932,0.645611040608196],[-58.9838722642171,658.276526886567,0.472806502423145],[-701.896606914109,-321.478524840109,0.850298612117948],[764.544093660114,-152.593587182897,0.755183538068763],[1078.601139681,19.8585395833159,0.666977192425275],[-4.41321469387171,1115.10341976823,0.809784917119386],[1053.94572153498,-1006.27657438893,0.701885922503054],[886.367539315744,729.304648481937,0.802762039340007],[-1342.70060029147,114.296447291561,0.835077216048906],[-257.03357172493,1130.51196805591,0.919558847222384],[-542.577525557505,-366.18796209139,0.885701660077078],[-1750.54319450355,1325.64734451443,0.720880876535201],[-2462.4998083763,1225.50737841424,0.876323919416888],[368.758420003972,729.132220037021,0.906739423284478],[1480.53793028458,50.0948831823092,0.730838670371462],[-376.639530018358,-870.854887615052,0.879002861208188],[2195.32959753732,1535.31072819181,0.926452103108692],[-687.982021965403,-477.025682009478,0.864542796633085],[-816.88450106869,733.94047656036,0.701748295923289],[269.121998855843,790.084553400605,0.978567135873354],[228.438447522018,-230.597058865148,0.522797753824722],[-1816.04587856753,-94.6323759617783,0.800745085009144],[79.3841787802882,1740.94670457302,0.905374783138122],[-1632.35706057264,188.477793110478,0.826450925804399],[131.574288268107,-859.62801987923,0.572533636624096],[1402.65537025934,-622.98475658309,0.922336218510251],[343.176671049875,-148.66422311242,0.66268551020082],[832.807272682791,-471.038257022343,0.946150873079892],[553.454165735287,668.361753003572,0.831672346225126],[-494.542546581743,27.9034876499805,0.787066597320128],[-391.780042591183,-205.200664456811,0.998381139654164],[904.91838166038,215.672740713158,0.883721967272975],[-780.29561184507,-1416.81828654023,0.710372911189923],[-1021.15467029612,-680.354406724951,0.94376735252277],[974.855983881274,396.010840089097,0.774322593217118],[274.082618317281,-441.127176628811,0.674107328621504],[-1598.61935788932,1035.68523600017,0.608895883704887],[-1856.68306198083,566.387062554479,0.968505467488469],[454.734635134954,-653.705539498053,0.64919466391414],[220.870756003485,-1169.20209460716,0.795482149483226],[285.806461943427,-472.447037102802,0.739945397937803],[1764.08075392291,366.117945818669,0.983131679353359],[-2223.14329531678,388.625225781308,0.711219753000439],[657.938958079682,-371.738614172638,0.960333836232511],[-300.869135359092,783.082937446297,0.948256171669363],[-94.3578215686427,218.65714868899,0.871898493869439],[864.003010510012,-543.410936485168,0.991358438992788],[-917.116957077297,586.942794580803,0.952066429943074],[189.299955624513,346.02716308184,0.769433949182],[-601.965748293343,203.80427144766,0.95711316612715],[-568.431576097174,-926.090387377445,0.920857131759344],[1170.33815918527,859.733396635484,0.899340092933886],[-1132.46854159181,49.3647665741517,0.836720926106887],[285.73398019051,1445.63480015966,0.689480758919839],[-2336.61246252357,1050.78139897031,0.997331409375516],[19.1642392059666,-641.461616185747,0.47231737034156],[1510.78796455884,-858.259588703974,0.726559846959278],[-1256.85837272869,873.798125850463,0.919821479658071],[827.437552422587,315.355345867582,0.902228729777197],[-776.07857865525,816.447470439057,0.976557774482794],[-405.182354174298,194.361012792254,0.629674645811339],[555.900538972039,-170.442865856687,0.990106341756776],[101.336165111855,-1193.79605123538,0.366753581780418],[-360.015051388394,457.250215527725,0.967298440507365],[587.973390564192,-336.984625127344,0.880704441069948],[1061.3727780322,-270.516483300288,0.873875685875806],[104.900104935178,1312.4120775324,0.746383259610252],[298.53279357126,-62.2122112479813,0.792195849044992],[-111.330114896828,-375.635945822944,0.486999521386778],[819.572368952998,-354.613744484233,0.80598095671901],[554.881270921032,-457.398571994253,0.846301568480104],[-388.830127994884,-725.023071685776,0.945015354402375],[551.543170110918,9.20481299745101,0.649628188405969],[119.023657759137,7.34746983198565,0.569302596419536],[305.610098280573,5.76069821624493,0.979713729401783],[1102.43132876766,10.0273650697734,0.615388746234991],[611.848771025363,18.1776925747892,0.707071947056798],[470.65596403082,17.7584585161586,0.253594885569338],[704.972408607612,11.2266740941158,0.713986184140571],[431.565588286136,13.0524663147133,0.938217431997196],[312.348951584779,-5.4407481323077,0.518386623399018],[726.625460191762,-3.03474924485459,0.923805424835847],[188.981640706631,-3.92956371442367,0.978642497518232],[780.244811268518,-2.63721440659017,0.769762226155925],[89.6093737611338,13.9390803456386,0.845388672703923],[-183.09545635837,9.40327019250397,0.648460015428466],[486.406921949188,-3.85511803488143,0.825510211825086],[-90.9642520384425,1.94401529782603,0.368659088883493],[32.0467305906063,12.0005086486706,0.966619812435406],[496.78287428042,0.855061543569152,0.449412373405396],[307.209034598265,5.7964068388355,0.812760180691227],[258.071122312396,21.8686445668015,0.559052091641168],[551.543170110918,9.20481299745101,0.841843581934535],[119.023657759137,7.34746983198565,0.934781323840294],[305.610098280573,5.76069821624493,0.764093032735636],[1102.43132876766,10.0273650697734,0.520246601295406],[611.848771025363,18.1776925747892,0.353254815250842],[470.65596403082,17.7584585161586,0.796837838623706],[704.972408607612,11.2266740941158,0.627034215876953],[431.565588286136,13.0524663147133,0.833617139906212],[312.348951584779,-5.4407481323077,0.803819823945928],[726.625460191762,-3.03474924485459,0.692313585356163],[188.981640706631,-3.92956371442367,0.875590760075646],[780.244811268518,-2.63721440659017,0.776559256949876],[89.6093737611338,13.9390803456386,0.426733981262014],[-183.09545635837,9.40327019250397,0.979216069141587],[486.406921949188,-3.85511803488143,0.981950037895139],[-90.9642520384425,1.94401529782603,0.983685333429292],[32.0467305906063,12.0005086486706,0.511567569235732],[496.78287428042,0.855061543569152,0.808057113619245],[307.209034598265,5.7964068388355,0.68064187592707],[258.071122312396,21.8686445668015,0.546021560347614],[551.543170110918,9.20481299745101,0.901756737891307],[119.023657759137,7.34746983198565,0.698197486474807],[305.610098280573,5.76069821624493,0.974481010450006],[1102.43132876766,10.0273650697734,0.818180570872419],[611.848771025363,18.1776925747892,0.425321880628895],[470.65596403082,17.7584585161586,0.743522120228893],[704.972408607612,11.2266740941158,0.765891713922633],[431.565588286136,13.0524663147133,0.799203882301486],[312.348951584779,-5.4407481323077,0.671572155897429],[726.625460191762,-3.03474924485459,0.992562049105245],[188.981640706631,-3.92956371442367,0.688316402785597],[780.244811268518,-2.63721440659017,0.946303714816376],[89.6093737611338,13.9390803456386,0.333352893239585],[-183.09545635837,9.40327019250397,0.965741222409997],[486.406921949188,-3.85511803488143,0.895079200811108],[-90.9642520384425,1.94401529782603,0.804088202922151],[32.0467305906063,12.0005086486706,0.490176907366527],[496.78287428042,0.855061543569152,0.94417463307393],[307.209034598265,5.7964068388355,0.844126616021919],[258.071122312396,21.8686445668015,0.80759282995112],[551.543170110918,9.20481299745101,0.985645309552296],[119.023657759137,7.34746983198565,0.573164459793882],[305.610098280573,5.76069821624493,0.748101915269319],[1102.43132876766,10.0273650697734,0.82465291138008],[611.848771025363,18.1776925747892,0.953644199216957],[470.65596403082,17.7584585161586,0.824712559596301],[704.972408607612,11.2266740941158,0.710518042330744],[431.565588286136,13.0524663147133,0.945838442990614],[312.348951584779,-5.4407481323077,0.428714312805987],[726.625460191762,-3.03474924485459,0.997000467866326],[188.981640706631,-3.92956371442367,0.781646355611299],[780.244811268518,-2.63721440659017,0.810458239353645],[89.6093737611338,13.9390803456386,0.920049722001536],[-183.09545635837,9.40327019250397,0.912219123921849],[486.406921949188,-3.85511803488143,0.877070588515538],[-90.9642520384425,1.94401529782603,0.87256214014426],[32.0467305906063,12.0005086486706,0.919329357812242],[496.78287428042,0.855061543569152,0.946730336453218],[307.209034598265,5.7964068388355,0.75976224246834],[258.071122312396,21.8686445668015,0.904932307841967],[551.543170110918,9.20481299745101,0.705199850385923],[119.023657759137,7.34746983198565,0.88556492616286],[305.610098280573,5.76069821624493,0.926973937073531],[1102.43132876766,10.0273650697734,0.88614902412573],[611.848771025363,18.1776925747892,0.476340440394592],[470.65596403082,17.7584585161586,0.910308559382889],[704.972408607612,11.2266740941158,0.964670474161903],[431.565588286136,13.0524663147133,0.708680254399087],[312.348951584779,-5.4407481323077,0.959768222486566],[726.625460191762,-3.03474924485459,0.905540506157628],[188.981640706631,-3.92956371442367,0.801511948386173],[780.244811268518,-2.63721440659017,0.717187786599086],[89.6093737611338,13.9390803456386,0.568311807377657],[-183.09545635837,9.40327019250397,0.37060333522931],[486.406921949188,-3.85511803488143,0.559125299424708],[-90.9642520384425,1.94401529782603,0.668294166978476],[32.0467305906063,12.0005086486706,0.946569721972455],[496.78287428042,0.855061543569152,0.467483979233163],[307.209034598265,5.7964068388355,0.629291956486891],[258.071122312396,21.8686445668015,0.443797746155095]]}],"xAxis":[{"type":"value","show":false,"position":"bottom","name":"","nameLocation":"end","boundaryGap":[0,0],"scale":true,"axisLine":{"show":true,"onZero":false},"axisTick":{"show":false},"axisLabel":{"show":true},"splitLine":{"show":true},"splitArea":{"show":false}}],"yAxis":[{"type":"value","show":false,"position":"left","name":"","nameLocation":"end","boundaryGap":[0,0],"scale":true,"axisLine":{"show":true,"onZero":false},"axisTick":{"show":false},"axisLabel":{"show":true},"splitLine":{"show":true},"splitArea":{"show":false}}],"grid":{"borderWidth":0},"title":{"text":"Heatmap","x":"center","y":"bottom","orient":"horizontal"},"theme":"infographic"},"evals":[],"jsHooks":[]}</script>
</td>
<td>
</table>
<p>The keys are:</p>
<ul>
<li>No need of <code>x</code></li>
<li>numeric <code>y</code>, numeric <code>lat</code> and <code>lng</code></li>
</ul>
</div>
<div id="function-call" class="section level1">
<h1><span class="header-section-number">2</span> Function Call</h1>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">echartr</span>(data, y, lng, lat, &lt;series&gt;, &lt;t&gt;, &lt;type&gt;)</code></pre></div>
<table>
<colgroup>
<col width="11%" />
<col width="88%" />
</colgroup>
<thead>
<tr class="header">
<th>Arg</th>
<th>Requirement</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><p><strong>data</strong></p></td>
<td><p>source data in the form of data.frame</p></td>
</tr>
<tr class="even">
<td><p><strong>y</strong></p></td>
<td><p>numeric dependent variable. Only the first one is accepted. <code>y</code> represents the heat value which is between 0 and 1. If <code>y</code> is not within this range, <code>recharts</code> will normalize it.</p></td>
</tr>
<tr class="odd">
<td><p>series</p></td>
<td><p>series variable which will be coerced to factors. Only the first one is accepted if multiple variables are provided.</p></td>
</tr>
<tr class="even">
<td><p><strong>lng</strong></p></td>
<td><p>longitude or x-coordinate.</p></td>
</tr>
<tr class="odd">
<td><p><strong>lat</strong></p></td>
<td><p>latitude or y-coordinate.</p></td>
</tr>
<tr class="even">
<td><p>t</p></td>
<td><p>timeline variable which will be coerced to factors. Only the first one is accepted if multiple variables are provided.</p></td>
</tr>
<tr class="odd">
<td><p>type</p></td>
<td><p>‘heatmap’</p></td>
</tr>
</tbody>
</table>
</div>
<div id="showcase" class="section level1">
<h1><span class="header-section-number">3</span> Showcase</h1>
<div id="data-preparation" class="section level2">
<h2><span class="header-section-number">3.1</span> Data Preparation</h2>
<p>Here is a fictious dataset.</p>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">data =<span class="st"> </span><span class="kw">rbind</span>(
    <span class="kw">data.frame</span>(
        <span class="dt">lng=</span><span class="dv">100</span>+<span class="kw">rnorm</span>(<span class="dv">100</span>,<span class="dv">0</span>, <span class="dv">1</span>)*<span class="dv">600</span>, <span class="dt">lat=</span><span class="dv">150</span>+<span class="kw">rnorm</span>(<span class="dv">100</span>,<span class="dv">0</span>, <span class="dv">1</span>)*<span class="dv">50</span>, 
        <span class="dt">y=</span><span class="kw">abs</span>(<span class="kw">rnorm</span>(<span class="dv">100</span>,<span class="dv">0</span>,<span class="dv">1</span>))),
    <span class="kw">data.frame</span>(
        <span class="dt">lng=</span><span class="kw">rnorm</span>(<span class="dv">200</span>,<span class="dv">0</span>, <span class="dv">1</span>)*<span class="dv">1000</span>, <span class="dt">lat=</span><span class="kw">rnorm</span>(<span class="dv">200</span>,<span class="dv">0</span>, <span class="dv">1</span>)*<span class="dv">800</span>, 
        <span class="dt">y=</span><span class="kw">abs</span>(<span class="kw">rnorm</span>(<span class="dv">200</span>,<span class="dv">0</span>,<span class="dv">1</span>))),
    <span class="kw">data.frame</span>(<span class="dt">lng=</span><span class="dv">400</span>+<span class="kw">rnorm</span>(<span class="dv">20</span>,<span class="dv">0</span>, <span class="dv">1</span>)*<span class="dv">300</span>, <span class="dt">lat=</span><span class="dv">5</span>+<span class="kw">rnorm</span>(<span class="dv">20</span>,<span class="dv">0</span>, <span class="dv">1</span>)*<span class="dv">10</span>, 
               <span class="dt">y=</span><span class="kw">abs</span>(<span class="kw">rnorm</span>(<span class="dv">100</span>,<span class="dv">0</span>,<span class="dv">1</span>))))
<span class="kw">str</span>(data)</code></pre></div>
<pre><code>## &#39;data.frame&#39;:    400 obs. of  3 variables:
##  $ lng: num  -681.7 -85.6 -453.2 441.2 204.7 ...
##  $ lat: num  168 136 175 131 120 ...
##  $ y  : num  0.971 0.195 1.215 0.432 0.233 ...</code></pre>
</div>
<div id="basic-plot" class="section level2">
<h2><span class="header-section-number">3.2</span> Basic Plot</h2>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">echartr</span>(data,<span class="dt">lng=</span>lng,<span class="dt">lat=</span>lat,<span class="dt">y=</span>y,<span class="dt">type=</span><span class="st">&#39;heatmap&#39;</span>) %&gt;%<span class="st"> </span>
<span class="st">    </span><span class="kw">setTitle</span>(<span class="st">&quot;Heatmap&quot;</span>, <span class="st">&quot;Fictious Data&quot;</span>)</code></pre></div>
<div id="htmlwidget-8c953aa38fdaa0610f1e" style="width:672px;height:480px;" class="echarts html-widget"></div>
<script type="application/json" data-for="htmlwidget-8c953aa38fdaa0610f1e">{"x":{"series":[{"type":"heatmap","minAlpha":0.2,"opacity":0.6,"gradientColors":["blue","cyan","limegreen","yellow","red"],"data":[[-681.652629345689,167.690363505146,0.76061606103787],[-85.5849253540276,135.929515663053,0.952612959632105],[-453.247496350878,174.810813221187,0.700310096395968],[441.169758510551,130.593669101437,0.893985681513052],[204.723493383899,120.045018906829,0.943209593381014],[422.674778872194,215.124016113448,0.78729848363984],[-1488.14288040278,156.213952544379,0],[917.527282942445,80.404544235438,0.454269138315804],[1220.90870279855,126.471045129443,0.805268650948873],[-45.5878414323556,68.7612564813247,0.511933821885343],[312.009324153668,215.401113819874,0.66158580482703],[1003.44317551292,183.055247119633,0.797146926782755],[228.826485964192,76.1247265964229,0.786297608666668],[-350.747020430407,170.437021821332,0.834531268461111],[-243.268470912848,156.807724834095,0.901073014516424],[416.139465944284,157.122770324964,0.691152592903887],[914.77032799707,172.924908269546,0.991730489388959],[-234.255006103677,134.950379247676,0.639717888269342],[988.062342848225,102.958855109094,0.926393400771522],[225.963575530557,208.80138357897,0.55780198464263],[1176.01997814836,234.514033168521,0.988937643246446],[-186.82341006623,255.108477695311,0.820862207562237],[120.627105063665,117.39547457746,0.97058813222522],[-41.3576895437944,89.7741791168292,0.719740985023563],[-727.441483651978,75.0424878162878,0.856671656765987],[362.324916353532,238.5865380446,0.904774208795093],[729.851876362533,223.396893083873,0.714130772226457],[1007.07781152158,79.1037333131797,0.996410877454866],[1078.6328492066,94.2968964848444,0.861435587406041],[-449.317765806339,242.824876316603,0.811299932089519],[-1247.3858014441,151.59833370389,0.960450206963807],[-85.1603511829617,149.491329899178,0.991907066145198],[-109.591838315486,114.049266411295,0.992926807325102],[287.800563913865,236.264559952983,0.264757468176925],[-1138.10782329068,127.44984997384,0.763102458902374],[131.873752201937,202.225951675501,0.542444899060134],[1.53583159013476,177.035556971069,0.911002616421465],[1028.63289897568,220.901054572436,0.414335574290751],[298.392564134421,57.6621073961425,0.886707440366484],[-867.398638181391,228.040309249563,0.90710313024472],[-349.877984825684,92.8651772569161,0.832891904760718],[-1074.22724497871,165.758702917013,0.648258551634472],[588.564917425536,157.957953699844,0.892361969403253],[837.277799371699,38.6421209321873,0.686371548377564],[32.0577909891337,75.441141454072,0.287329879911103],[543.026570745827,178.621139799334,0.688984878816733],[834.647215561355,174.500710550853,0.93082285590649],[-215.160405168709,123.646050722492,0.673959407275953],[-1186.28849584055,154.16180198995,0.792613061042358],[15.3504983261401,210.631731552605,0.979176436432259],[713.550243347397,148.873694488635,0.682783476691113],[632.582207329332,184.04433708892,0.582797918438685],[1242.47887818982,182.869861766598,0.929944013213637],[-125.302931121761,171.863967225782,0.792417216815391],[902.157448841306,190.74477790315,0.877142256700081],[391.722146213123,200.685364348623,0.572353718148662],[275.64943683815,164.025393842566,0.934320582103612],[652.035932747976,222.403665488341,0.852426584663801],[-130.442304850794,161.831239436358,0.966682317933029],[263.042400695002,106.282088017737,0.693807100226751],[108.863772832077,114.306406198606,0.968294754271316],[-440.588889614356,140.881624954294,0.741366205238632],[-279.66472516027,167.349205503212,0.949405943759151],[988.272990262452,103.260463172381,0.889762802169336],[823.278431912939,185.742846767152,0.802369224437505],[-123.667924379455,131.337211291946,0.846227005222897],[-372.290668340504,165.988262884839,0.901076760169028],[622.074396875271,183.508674778516,0.962243764588666],[-795.910487051394,215.312099238811,0.666630745770633],[232.467652440215,63.4160867356019,0.860044066936841],[57.4128676253627,235.837272395102,0.570034962850718],[-447.186156787346,98.9568161179829,0.804889624033493],[-589.66419437572,217.304999713692,0.99785566344439],[189.639847439694,122.820387976753,0.594974371038571],[-655.911284537603,144.08054416803,0.905339566770446],[693.821959438852,61.6673289403082,0.767681556649288],[161.04241779295,185.329475579647,0.726870370677191],[691.731473703584,146.920705641661,0.63593917067478],[934.318960358531,151.375189147855,0.536659068144343],[596.143609084121,141.656501532722,0.768767358904128],[-381.536202359832,232.000579040579,0.827538441944983],[204.602982181429,145.796080376527,0.942078764753401],[250.618063114914,127.617812992911,0.888685747187812],[1000.90345055197,211.917020526584,0.676647710200306],[458.992688941974,176.690653257088,0.999577821107925],[-220.363843463829,209.076987040794,0.891727557124813],[955.934289315742,143.218708129834,0.820024015496405],[75.8762444741291,115.510031598928,0.972966227444299],[-280.978997595163,105.950595036057,0.98232911278093],[-46.5507135834416,147.626413710872,0.856892446828667],[425.734399400652,90.0552546173949,0.870251795589354],[106.822556502918,114.636741968504,0.945822583946322],[-144.785926176189,130.590369376247,0.930509699200689],[399.824763776885,140.364157472619,0.949516720670475],[471.084762202727,116.607649485589,0.708783115358438],[3.1788216098267,119.75411718875,0.941775683965632],[749.654828116351,157.926084110055,0.598899573009304],[-403.684344044284,142.773391327578,0.669072590091041],[1060.45051177619,244.021604754205,0.741794454690096],[-184.556974280929,201.951439577592,0.947067057193758],[917.063759784128,-548.315425068399,0.574529404017603],[-825.421040124361,387.258039407781,0.913290395118371],[-119.020966451231,-285.568681726189,0.891960974077356],[-1956.13390873448,848.716812377416,0.914554386366639],[1092.9890204444,-1153.12514342565,0.820454439930294],[-1950.96019658479,-573.936450720672,0.765871147123367],[-226.14092106576,304.492691683251,0.580063165459751],[676.094466966565,462.689109408232,0.978740116164329],[-546.155783612889,-367.905897870913,0.890694821489599],[-1732.64962977882,-34.0221656818861,0.909415734172411],[-423.883237784702,967.991394875536,0.685362726663964],[723.426031146392,1333.34403305366,0.841882216871385],[-1242.79099765041,626.539883746788,0.94013125510517],[-151.623744689759,-772.979626631997,0.902501276686653],[115.203932218575,754.325676542552,0.972237044854296],[1019.9275668065,272.04627371423,0.742972355058293],[609.378556761086,-1245.17278827859,0.917486458863843],[1375.99219201398,476.097374018097,0.906301506940077],[-1040.1129063964,756.51569825886,0.575408028955818],[1095.27696110141,-128.99710080066,0.430778222582478],[-548.206032425359,-1087.31074198983,0.555993852537851],[928.000501106587,-1063.87691656237,0.617139311532307],[1048.59096172316,-705.948386540167,0.907034090642401],[1185.74353539245,1398.06883281506,0.719433948948978],[-1010.52094612846,367.809742923941,0.684602933626017],[1087.67077180294,317.505604377454,0.752322993561735],[576.247513299447,-1517.6806984979,0.597874242757322],[1079.91326054453,-50.7076849316934,0.862099104472817],[687.905734371221,-581.926480932304,0.820019639137473],[954.911684350362,-159.795909034837,0.843322932867073],[532.092899684787,-1752.04483229499,0.953610299219328],[-13.3479062923054,-678.794305066579,0.963811781941756],[1160.83532489804,-831.466496695531,0.718936123923453],[-81.5198510529918,-1178.24210639732,0.993123100005975],[621.341648305447,943.718051311928,0.82529318729363],[2084.88202237523,174.288686134731,0.95000254962064],[-548.66081074817,526.292258501756,0.746978043736855],[534.441381479882,-738.28292078348,0.764028773595625],[-849.685783734919,447.094739290259,0.92241669141437],[339.95731730078,629.422647755784,0.804254081848173],[670.772445066622,-1159.61078568407,0.839946595015419],[1668.90611807021,167.464196189029,0.94096248629555],[1706.73528807268,-366.820317614241,0.82889510109318],[-280.978567013732,79.2516666066214,0.524146586522458],[-38.2010965203406,-889.306656179675,0.819274846533841],[-705.822757498508,-282.530985739456,0.870143803550523],[941.303363107424,-34.5826668129413,0.916094000153965],[-1976.69127028653,245.1617213537,0.59694688983298],[972.309473293566,-382.792677389247,0.821570295660107],[-327.180998859016,-981.792751557717,0.962849653799975],[142.734249778876,-97.7811039865537,0.662002910687085],[-408.768076580402,-1162.92294598113,0.603906734720993],[293.854065902984,1058.32506803945,0.747479103704104],[-1498.05196681396,918.609600839222,0.524341459052898],[633.596828343258,1013.45107834319,0.784259883606604],[2112.67011201267,81.7279001114056,0.795002693873027],[-95.1941976751888,-491.488635853955,0.804994713073341],[-1.90907789465584,-827.532610120086,0.985762386671318],[462.137080070236,-243.88389978405,0.689580052746012],[338.308330585379,-1492.32144251611,0.781362550914531],[-229.513549798177,-298.59398686841,0.657159390909066],[-949.326351153191,481.996825313342,0.967962089568404],[-324.297383984358,628.075217549169,0.883640899270107],[-638.851181062778,14.5163947452711,0.853256298567875],[217.255745322528,-554.608029260245,0.870832639869126],[110.502135267203,133.15032095671,0.831356648552501],[1483.63943170831,-665.897025615301,0.962937321039466],[-86.5175797988546,-2370.78841978591,0.954563726167717],[-1034.53573482601,-346.584607207681,0.847196137099812],[-925.23688691285,-687.71014874967,0.867842666780862],[406.381758244004,-1137.1702644122,0.941243479195904],[1271.08006702428,46.4072179158654,0.416898071268535],[-1175.354889123,-148.089401128676,0.871485118456116],[-175.380944698888,868.72643656183,0.750320899752915],[-88.1891711424857,-1339.27997463623,0.830385629139616],[480.519323776751,-1334.47572324422,0.686124155745861],[-880.448468214044,-8.53567722507093,0.621000095822955],[-793.998384943993,-636.465687357605,0.923540781308028],[3029.73243110761,840.615584943336,0.900447413004958],[785.801417456513,-363.248329202125,0.673450564547149],[134.274852584255,-203.400267710082,0.854660888500665],[2476.81494805797,-656.066089970914,0.866497846718992],[671.558618539906,395.580540645436,0.756395022521138],[663.687951719421,-868.376565152078,0.922283006011043],[1759.6593806597,-471.144769382826,0.891220469313673],[-1168.47266383023,705.413055039152,0.987606282160822],[925.205804875484,780.428280845062,0.434057867994891],[-593.206478945663,978.041524066776,0.960805408255912],[730.505918320529,141.11968042953,0.939254068098654],[143.672428293758,-643.581224892248,0.985223565961154],[-313.041374695584,-67.3125064391421,0.741408908023781],[-288.37265206929,137.059095831485,0.970313661880462],[-431.170511215627,1050.59546669316,0.91327827205036],[-2835.79466599381,268.851037581872,0.831137460681882],[1025.46217717582,1840.72440795193,0.807107784574271],[-1360.30384932492,-260.570122407338,0.726108944400756],[392.118761191877,1259.92146498444,0.688726761639748],[-414.736092931344,-191.151647945307,0.96014889243644],[1005.09989993302,-1146.74013390879,0.975589956245522],[649.0109383683,-312.658206615015,0.975700368131496],[1116.52326703403,-54.0504808682549,0.777815766911975],[1410.6997194986,-450.482169551251,0.911687564245168],[-493.026867582775,483.574591442622,0.794778291576139],[1119.94288155763,499.766355972985,0.679762988369038],[-841.289333114832,-858.978364454414,0.916438696710911],[-51.3668367375839,1123.0085083631,0.858212111660009],[51.1663959756457,918.691139981696,0.598645837082265],[435.307640124393,-1398.96722377184,0.875779311057057],[715.645279935045,-1802.86950143943,0.680790960927747],[442.089229933923,526.118087928174,0.889888726166196],[-309.450671437676,101.231675848597,0.75766078968537],[1074.46253378224,334.004104747231,0.884539201213502],[875.121479669715,-1353.73780027436,0.904405498015202],[492.652215178517,-143.662061844531,0.811701501990045],[451.494885710911,-212.701667232716,0.902912005997706],[-126.837313138583,-775.837081737577,0.885408367775642],[-1799.70130075138,-545.129319831565,0.506676804290265],[982.685134538235,190.609604246239,0.823832246863493],[853.426779056887,253.846754760584,0.962186186518474],[978.217980519125,-769.173126914392,0.981077031571271],[897.050323769746,-945.91138516475,0.469955645146264],[795.418107912761,450.459112015595,1],[515.937108442986,-789.587053195267,0.854380098125699],[-1266.47686724649,-1068.10316520204,0.846102599007136],[720.853954254669,290.59779933157,0.745631725096072],[-130.35462987865,311.569768624597,0.835631987253166],[-1229.80827785894,282.080162613441,0.82532184852881],[-1617.64969854985,-994.192616080387,0.920951019872689],[-193.365673890567,-475.388852731582,0.759061250052019],[670.376060400304,-1050.68798728916,0.747446362018505],[1027.62989291845,-46.7593578344722,0.694483385326858],[-33.6188998547403,72.2108606612586,0.820756762457073],[267.586682260206,-990.405912720393,0.839141741828015],[67.2611271557842,562.136207568231,0.728451841596446],[484.218881359593,-219.439846970982,0.897929481258239],[1783.45101797339,223.962956957063,0.873909688722909],[630.451589998619,551.562244094957,0.72595134729075],[-288.147610521714,-693.503006116963,0.80425504000246],[-846.27197963223,-0.79590813464865,0.603486747147268],[-298.795743436757,822.70933699607,0.946340523581826],[1546.67453839609,877.948139786952,0.630546029211107],[657.991955027204,577.70757807267,0.642362219906537],[149.512507317187,733.031671864938,0.823832110335417],[-1690.04626667508,638.588766537979,0.905221613628403],[1299.76543696432,-661.152718047918,0.921640729188648],[676.35605222431,333.920245106988,0.645824435151239],[1455.69984793356,647.027549173353,0.635280435213744],[-487.944312491541,-555.839925202467,0.431041253469427],[-2024.35818263023,-1275.36149450405,0.838268586461915],[-663.78039390816,-1055.39849088199,0.827621609459458],[-1135.09464555229,202.808204136524,0.75363439983144],[-1358.07543478108,-814.394419745797,0.959787082733145],[1007.85963910593,-527.045416575135,0.785949089186175],[-588.958259157985,-691.664500964384,0.566813886720167],[1055.17040724691,-250.659801773207,0.763503350827393],[-1139.31162493409,189.137221574703,0.860370679794891],[-189.744941102999,1261.82892265588,0.748703775536135],[-440.283050026262,131.016947271569,0.967961362391532],[117.159986283752,-945.662883027433,0.730118625784204],[-823.337380193486,369.719563686847,0.703294881075025],[558.922498033858,-121.572129909957,0.995729083833885],[697.166861392048,1103.7794477394,0.560223318751396],[-926.235414483745,871.597042334868,0.602278605664413],[1788.65035497137,-473.100521891321,0.940995752932714],[926.635802900909,-895.010258735308,0.839114889816788],[849.488266950306,71.9795387235977,0.713344171252605],[-1754.10710598109,-1556.34854564454,0.681159374385029],[867.070448715486,-799.670889322777,0.777474709078422],[1380.6835986881,-76.5309459305662,0.942899785809362],[841.77627053134,-40.6819865170791,0.984189041450187],[-925.829091286894,406.246520265497,0.804287711444423],[2124.17819550446,-760.010062411852,0.760292645612779],[67.6927653627405,-190.193005666955,0.905801815884095],[-512.624662118233,-1570.48524743137,0.878419337584845],[307.571743041467,-660.788981856921,0.436426599666821],[1953.99967004082,-473.687073968504,0.688770397958741],[-877.109000529673,-513.287986254025,0.768632744344417],[-1050.38245861754,788.10512794608,0.734817245486545],[696.068429270904,688.997980591554,0.835030987016038],[22.4646760014195,-490.45253149745,0.991843543908116],[-678.960868819709,-111.833794030819,0.942341923284699],[157.238787802641,-928.784878515393,0.962948177149696],[882.536135021832,379.105747269046,0.656357767616695],[409.333637855891,495.977771569571,0.687576412641924],[-429.811776551187,-1396.86737328043,0.966123523914215],[-972.874025201905,1782.92238130739,0.819495552521179],[-1422.06843136494,-812.046488462977,0.899186831580472],[128.386603672543,-868.81627791804,0.992317016014052],[-1757.7020361251,537.540815025885,0.996248655698473],[-732.798909720306,13.5418861206582,0.838827177613658],[-397.351284671901,-767.759086099039,0.544279143756757],[-1053.01039730524,-100.020133406763,0.517929971724873],[229.599351825029,-110.808121546297,0.848225104921887],[-1357.36945660093,-670.676914422263,0.793302083513272],[1063.32606102809,1507.18429304364,0.898162892490807],[583.135173093609,-105.347497919139,0.601875473647792],[3007.66932730286,485.996056704965,0.907856415015935],[-1375.85770265533,-521.318669688455,0.895304284732328],[77.8123023554906,142.224744524575,0.751264920371713],[-119.957414208608,-984.082090154736,0.9887565858267],[120.77719330523,11.1867579972638,0.981375456912012],[579.232266048961,-5.12231678749348,0.737419933886619],[94.9639853027999,-12.7944450856337,0.852198581660292],[540.344764977287,8.9155862962334,0.816469560784894],[466.530413432401,4.92150675152697,0.735714494009286],[632.279326803665,-2.48038995753383,0.984108743823882],[652.931262210377,18.3807416543567,0.932133134933549],[183.414267551105,18.1545603720715,0.91182047784927],[579.308991178886,2.3417906754032,0.69852314720638],[834.666199837923,7.28994297568259,0.616907991827341],[121.367355260026,12.2825352413999,0.602645588479618],[448.448461698154,27.5783544739536,0.997354164754504],[481.241864140192,-14.0040370222557,0.593438261101859],[174.159973856989,10.2433404159744,0.620485756134733],[548.81391332822,12.4436662056842,0.957642832864598],[786.983749002578,-1.63662907436696,0.623374252093193],[451.055076753345,-1.59214492058811,0.611006338311257],[8.53250984252696,17.1782941996684,0.835996734069714],[591.837159977745,-18.8689906085222,0.9069121803174],[664.112293058505,12.4273135200794,0.63338171610979],[120.77719330523,11.1867579972638,0.921449464887591],[579.232266048961,-5.12231678749348,0.900309530858499],[94.9639853027999,-12.7944450856337,0.464074663471593],[540.344764977287,8.9155862962334,0.87684783313558],[466.530413432401,4.92150675152697,0.818108293062678],[632.279326803665,-2.48038995753383,0.988623218692475],[652.931262210377,18.3807416543567,0.871630760895788],[183.414267551105,18.1545603720715,0.851205295756951],[579.308991178886,2.3417906754032,0.361460728457668],[834.666199837923,7.28994297568259,0.846340929808348],[121.367355260026,12.2825352413999,0.879916771067689],[448.448461698154,27.5783544739536,0.782646147687361],[481.241864140192,-14.0040370222557,0.749589478063095],[174.159973856989,10.2433404159744,0.600401177030662],[548.81391332822,12.4436662056842,0.840748989051869],[786.983749002578,-1.63662907436696,0.942690686846008],[451.055076753345,-1.59214492058811,0.735430345113458],[8.53250984252696,17.1782941996684,0.995741690957006],[591.837159977745,-18.8689906085222,0.987029593622458],[664.112293058505,12.4273135200794,0.598358466393298],[120.77719330523,11.1867579972638,0.852116456604003],[579.232266048961,-5.12231678749348,0.832451479720196],[94.9639853027999,-12.7944450856337,0.980626424143431],[540.344764977287,8.9155862962334,0.92590745065787],[466.530413432401,4.92150675152697,0.980045470964673],[632.279326803665,-2.48038995753383,0.835710653377686],[652.931262210377,18.3807416543567,0.726708846482738],[183.414267551105,18.1545603720715,0.625935451118114],[579.308991178886,2.3417906754032,0.637737561906076],[834.666199837923,7.28994297568259,0.991989518721988],[121.367355260026,12.2825352413999,0.901395046106412],[448.448461698154,27.5783544739536,0.907185513720147],[481.241864140192,-14.0040370222557,0.954006445643449],[174.159973856989,10.2433404159744,0.739248243699307],[548.81391332822,12.4436662056842,0.638301292538785],[786.983749002578,-1.63662907436696,0.90744481005644],[451.055076753345,-1.59214492058811,0.933061809134329],[8.53250984252696,17.1782941996684,0.85163197160256],[591.837159977745,-18.8689906085222,0.993311872517046],[664.112293058505,12.4273135200794,0.943416953030604],[120.77719330523,11.1867579972638,0.609140974721226],[579.232266048961,-5.12231678749348,0.767658272420272],[94.9639853027999,-12.7944450856337,0.930737548760305],[540.344764977287,8.9155862962334,0.518176631215867],[466.530413432401,4.92150675152697,0.827970347484983],[632.279326803665,-2.48038995753383,0.786485686773074],[652.931262210377,18.3807416543567,0.744346601836636],[183.414267551105,18.1545603720715,0.654251359674571],[579.308991178886,2.3417906754032,0.977068825647284],[834.666199837923,7.28994297568259,0.872207681121646],[121.367355260026,12.2825352413999,0.985181233403991],[448.448461698154,27.5783544739536,0.681519386545116],[481.241864140192,-14.0040370222557,0.571918560794372],[174.159973856989,10.2433404159744,0.690270031162852],[548.81391332822,12.4436662056842,0.603148734626016],[786.983749002578,-1.63662907436696,0.857047025842629],[451.055076753345,-1.59214492058811,0.826582628585536],[8.53250984252696,17.1782941996684,0.999695485014733],[591.837159977745,-18.8689906085222,0.582921104389496],[664.112293058505,12.4273135200794,0.510749340372903],[120.77719330523,11.1867579972638,0.97681918657323],[579.232266048961,-5.12231678749348,0.821683715301563],[94.9639853027999,-12.7944450856337,0.287087630392526],[540.344764977287,8.9155862962334,0.87187505740589],[466.530413432401,4.92150675152697,0.864729204985407],[632.279326803665,-2.48038995753383,0.707890332980597],[652.931262210377,18.3807416543567,0.94848770540302],[183.414267551105,18.1545603720715,0.644608044575571],[579.308991178886,2.3417906754032,0.737102515000289],[834.666199837923,7.28994297568259,0.859774855830577],[121.367355260026,12.2825352413999,0.958600403175584],[448.448461698154,27.5783544739536,0.475615020184756],[481.241864140192,-14.0040370222557,0.949843019020556],[174.159973856989,10.2433404159744,0.838556376773153],[548.81391332822,12.4436662056842,0.673138258134693],[786.983749002578,-1.63662907436696,0.881149288109431],[451.055076753345,-1.59214492058811,0.869082509401128],[8.53250984252696,17.1782941996684,0.860338699523907],[591.837159977745,-18.8689906085222,0.818401884964327],[664.112293058505,12.4273135200794,0.746958130418256]]}],"xAxis":[{"type":"value","show":false,"position":"bottom","name":"","nameLocation":"end","boundaryGap":[0,0],"scale":true,"axisLine":{"show":true,"onZero":false},"axisTick":{"show":false},"axisLabel":{"show":true},"splitLine":{"show":true},"splitArea":{"show":false}}],"yAxis":[{"type":"value","show":false,"position":"left","name":"","nameLocation":"end","boundaryGap":[0,0],"scale":true,"axisLine":{"show":true,"onZero":false},"axisTick":{"show":false},"axisLabel":{"show":true},"splitLine":{"show":true},"splitArea":{"show":false}}],"grid":{"borderWidth":0},"title":{"text":"Heatmap","subtext":"Fictious Data","x":"center","y":"bottom","orient":"horizontal"}},"evals":[],"jsHooks":[]}</script>
<p>Heatmap is more useful in maps. You can refer to <code>addHeatmap</code> for help.</p>
</div>
</div>
<div id="futher-setup" class="section level1">
<h1><span class="header-section-number">4</span> Futher Setup</h1>
<p>Then you can configure the widgets, add markLines and/or markPoints, fortify the chart.</p>
<p>You can refer to related functions to play around on your own.</p>
</div>

<script type="text/javascript">
window.onload = function() {
  var i, fig = 1, caps = document.getElementsByClassName('caption');
  for (i = 0; i < caps.length; i++) {
    var cap = caps[i];
    if (cap.parentElement.className !== 'figure' || cap.nodeName !== 'P')
      continue;
    cap.innerHTML = '<span>Figure ' + fig + ':</span> ' + cap.innerHTML;
    fig++;
  }
  fig = 1;
  caps = document.getElementsByTagName('caption');
  for (i = 0; i < caps.length; i++) {
    var cap = caps[i];
    if (cap.parentElement.nodeName !== 'TABLE') continue;
    cap.innerHTML = '<span>Table ' + fig + ':</span> ' + cap.innerHTML;
    fig++;
  }
}
</script>



</div>

<script>

// add bootstrap table styles to pandoc tables
function bootstrapStylePandocTables() {
  $('tr.header').parent('thead').parent('table').addClass('table table-condensed');
}
$(document).ready(function () {
  bootstrapStylePandocTables();
});


</script>

<!-- dynamically load mathjax for compatibility with self-contained -->
<script>
  (function () {
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.src  = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
    document.getElementsByTagName("head")[0].appendChild(script);
  })();
</script>

</body>
</html>
